package com.gshrms.org.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gshrms.system.domain.dto.SysUserJoinDto;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.gshrms.common.annotation.Excel;
import com.gshrms.common.core.domain.CommonEntity;

import java.util.Date;

/**
 * 职级对象 org_post_rank
 * 
 * @author ruoyi
 * @date 2024-10-29
 */
public class OrgPostRank extends CommonEntity
{
    private static final long serialVersionUID = 1L;

    /** 职级ID */
    @TableId(type = IdType.AUTO)
    private Long postRankId;

    /** 职级名称 */
    @Excel(name = "职级名称")
    private String postRankName;

    /** 职级别名 */
    @Excel(name = "职级别名")
    private String postRankBname;

    /** 职级描述 */
    @Excel(name = "职级描述")
    private String postRankDesc;

    /** 职级类别ID */
    @Excel(name = "职级类别ID")
    private Long postCategoryId;

    /** 职级下限 */
    @Excel(name = "职级下限")
    private Long postGradeMin;

    /** 职级上限 */
    @Excel(name = "职级上限")
    private Long postGradeMax;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long createId;

    @TableField(exist = false)
    private SysUserJoinDto createInfo;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setPostRankId(Long postRankId) 
    {
        this.postRankId = postRankId;
    }

    public Long getPostRankId() 
    {
        return postRankId;
    }
    public void setPostRankName(String postRankName) 
    {
        this.postRankName = postRankName;
    }

    public String getPostRankName() 
    {
        return postRankName;
    }
    public void setPostRankBname(String postRankBname) 
    {
        this.postRankBname = postRankBname;
    }

    public String getPostRankBname() 
    {
        return postRankBname;
    }
    public void setPostRankDesc(String postRankDesc) 
    {
        this.postRankDesc = postRankDesc;
    }

    public String getPostRankDesc() 
    {
        return postRankDesc;
    }
    public void setPostCategoryId(Long postCategoryId) 
    {
        this.postCategoryId = postCategoryId;
    }

    public Long getPostCategoryId() 
    {
        return postCategoryId;
    }
    public void setPostGradeMin(Long postGradeMin)
    {
        this.postGradeMin = postGradeMin;
    }

    public Long getPostGradeMin()
    {
        return postGradeMin;
    }
    public void setPostGradeMax(Long postGradeMax)
    {
        this.postGradeMax = postGradeMax;
    }

    public Long getPostGradeMax() 
    {
        return postGradeMax;
    }
    public void setCreateId(Long createId) 
    {
        this.createId = createId;
    }

    public Long getCreateId() 
    {
        return createId;
    }

    public SysUserJoinDto getCreateInfo() {
        return createInfo;
    }

    public void setCreateInfo(SysUserJoinDto createInfo) {
        this.createInfo = createInfo;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("postRankId", getPostRankId())
            .append("postRankName", getPostRankName())
            .append("postRankBname", getPostRankBname())
            .append("postRankDesc", getPostRankDesc())
            .append("postCategoryId", getPostCategoryId())
            .append("postGradeMin", getPostGradeMin())
            .append("postGradeMax", getPostGradeMax())
            .append("createId", getCreateId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
